<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>登录</title>
    <!--引入axios-->
    <script src="js/axios.min.js"></script>
    <!-- 引入vue -->
    <script src="js/vue.js"></script>
    <!-- 引入组件库 -->
    <script src="element_ui/index.js"></script>
    <link rel="stylesheet" href="element_ui/index.css">
    <link rel="stylesheet" href="css/login.css">
    <style>
        .item .el-form-item__label {
            color: black;
            font-size: 17px;
        }
        .formItemStyle{
            padding-top: 20px;
        }
        .doLoginStyle{
            margin: 0 auto;
        }
    </style>
</head>
<body>
<div id="app">
    <div class="login" clearfix>
        <div class="login-wrap">
            <el-row type="flex" justify="center">
                <el-form ref="loginForm" :model="user" status-icon label-width="80px">
                    <h3>登录</h3>
                    <hr>
                    <el-form-item prop="username" class="item" label="用户名">
                        <el-input v-model="user.username" placeholder="请输入用户名" prefix-icon></el-input>
                    </el-form-item>
                    <el-form-item id="password" prop="password" class="item" label="密码">
                        <el-input v-model="user.password" show-password placeholder="请输入密码"></el-input>
                    </el-form-item>
                    <el-form-item class="formItemStyle">
                        <el-button type="primary" icon="el-icon-upload" class="doLoginStyle" @click="doLogin()">登录</el-button>
                    </el-form-item>
                </el-form>
            </el-row>
        </div>
    </div>
</div>
</body>
<script src="js/login.js"></script>
</html>